f9b14e8510b81f747dc3211641ffb6af3c95a56f,src/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java,RegionServerMetrics,doUpdates,#MetricsContext#,159
Before Change
this.fsWriteLatency.inc((int)HFile.getWriteOps(), HFile.getWriteTime());
// mix in HLog metrics
this.fsWriteLatency.inc((int)HLog.getWriteOps(), HLog.getWriteTime());
this.fsSyncLatency.inc((int)HLog.getSyncOps(), HLog.getSyncTime());
// push the result
this.fsReadLatency.pushMetric(this.metricsRecord);
this.fsWriteLatency.pushMetric(this.metricsRecord);
After Change
// mix in HLog metrics
ops = (int)HLog.getWriteOps();
if (ops != 0) this.fsWriteLatency.inc(ops, HLog.getWriteTime());
ops = (int)HLog.getSyncOps();
if (ops != 0) this.fsSyncLatency.inc(ops, HLog.getSyncTime());
// push the result
this.fsReadLatency.pushMetric(this.metricsRecord);